package com.zjxf.repository;

import com.zjxf.base.bean.po.PmsAsProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * 农副产品
 *
 * @author ZhangWei
 * @date 2021/4/6/006 15:56
 */
public interface PmsAsProductRepository extends JpaRepository<PmsAsProduct, Long>, JpaSpecificationExecutor<PmsAsProduct> {

    /**
     * 根据id与删除状态查找
     *
     * @param id
     * @param deleteState
     * @return
     */
    Optional<PmsAsProduct> findByIdAndDeleteState(Long id, Integer deleteState);
}
